﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TLCApp
{
    public partial class Rent14 : Form
    {
        public Rent14()
        {
            InitializeComponent();
        }

        private void Rent14_Load(object sender, EventArgs e)
        {

        }

        private void btnExit_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void btnSubmit_Click(object sender, EventArgs e)
        {
            if (txtNewPwd1.Text == txtNewPwd2.Text)
            {
                Dal.sys.Sys_Setpwd(  HisVBEncrypt.Encrypt.Encrypt(txtNewPwd1.Text), TLCApp.pulic.UserIfo.userId);

                pulic.Cls_Popup.MsgBox("密码设置成功！");
                btnExit.PerformClick();
            }
            else
            {
                pulic.Cls_Popup.MsgBox("新密码不相同！");
                txtNewPwd2.Focus();
            
            }
        }

       

     

      
    }
}
